<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>
    <?php echo $title ?>
    </title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.1.0/css/bootstrap.min.css">
  <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
  <script src="https://cdn.bootcss.com/bootstrap/4.1.0/js/bootstrap.min.js"></script> 
</head>
<body >


<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
  <ul class="navbar-nav">
  <li class="nav-item ">
      <a  class="nav-link" href ="index.php?c=Users&a=home"><?php echo ($this->username . "的任务");?> </a>
    </li>
    <li class="nav-item">
      <a  class="nav-link" href ="index.php?c=Tasks&a=all">所有任务</a>
    </li>
    <li class="nav-item">
    <a class="nav-link" href ="index.php?c=Tasks&a=progress">项目进度</a>
    </li>
    <li class="nav-item active">
    <a  class="nav-link" href ="index.php?c=Tasks&a=input">发布任务</a>
    </li>
    <li class="nav-item">
    <a class="nav-link" href ="index.php?c=Users&a=logOut">注销</a>
    </li>
  </ul>
</nav>  


<div class="container" style="margin-top: 30px">
<div class="row">
<div class="col-2"></div>
<div class="col-8">
<div class="card" style="width: auto;">
  <div class="card-body">
    <h2 class="card-title"> <?php echo $taskTitle; ?></h2>
    <p  class="card-text"> 负责人: <?php 
        if ($taskAccept === null) {
          echo ("无人负责");
        } else {
          echo $taskAccept;
        }?></p>
    
    
    <p> 发布人: <?php echo $taskInput; ?></p>
    <p> 完成状态: <?php 
          if ($taskDone === '0') {
            echo ("尚未完成");
          } else {
            echo ('已完成');
          }
          ?></p>
    <p> 任务详情: <?php echo $taskInfo; ?></p>
    <a href="index.php?c=Tasks&a=accept&id=<?php echo $id; ?>&change=<?php echo $canChange; ?>" class="card-link">接受任务</a>
    <a class="card-link" href ="index.php?c=Tasks&a=giveUp&id=<?php echo $id; ?>&change=<?php echo $canChange; ?>&giveup=<?php echo $canGiveUp; ?>">放弃任务</a>
    <a class="card-link" href ="index.php?c=Tasks&a=delete&id=<?php echo $id; ?>&change=<?php echo $canChange; ?>&delete=<?php echo $canDelete; ?>" >删除任务</a>
    <a class="card-link" href ="index.php?c=Tasks&a=done&id=<?php echo $id; ?>&change=<?php echo $canChange; ?>&done=<?php echo $canDone; ?>" >完成任务</a>
  </div>
</div>

<!-- <h1>  -->

<?php
//  echo $taskTitle;
  ?>
  <!-- </h1> -->
<!-- <p> 负责人:  -->
<?php 
        // if ($taskAccept === null) {
        //   echo ("无人负责");
        // } else {
        //   echo $taskAccept;
        // }
        ?>
        <!-- </p> -->

<!-- <p> 发布人: -->
 <?php 
//  echo $taskInput;
  ?>
  <!-- </p><p> 完成状态:  -->
  <?php 
          // if ($taskDone === '0') {
          //   echo ("尚未完成");
          // } else {
          //   echo ('已完成');
          // }
          ?>
          <!-- </p><p> 任务详情:  -->
          <?php
          //  echo $taskInfo;
            ?>
            <!-- </p> -->




</div>
</div>
</div>
</body> 
</html>